﻿using UnityEngine;

public class ColliderCore_Box : ColliderCore
{
    // 矩形
    public float m_fLenght; // 长
    public float m_fWidth; // 宽
    // Use this for initialization


    public void DoInit(float fWidth, float fLenght)
    {
        m_fWidth = fWidth;
        m_fLenght = fLenght;
    }

#if UNITY_EDITOR
    void OnDrawGizmos()
    {
        if (!m_bShow)
            return;
        Gizmos.matrix = gameObject.transform.localToWorldMatrix;
        Gizmos.color = m_Color;
        DrawTools.DrawBox(m_CurPos, m_CurDir, m_fWidth, m_fLenght, m_fHeight);
    }
#endif
}
